<template>
  <view class="express-section">
    <view class="express-info" @click="gotoExpress">
      <view class="express-status">
        <i
          class="iconfont icon-landtransportation"
          style="font-size: 40rpx"
        ></i>
        <text>{{ order.express_detail.status_text }}</text>
      </view>
      <i class="iconfont icon-arrow-right" style="font-size: 22rpx"></i>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    order: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  methods: {
    gotoExpress() {
      try {
        let data = {
          ...this.order.express_detail,
          express: this.order.express,
          express_no: this.order.express_no,
        };
        uni.setStorageSync("expressInfo", JSON.stringify(data));
      } catch (e) {
        // error
      }
      this.$utils.toUrl(`/user/express/express`, "navigate");
    },
  },
};
</script>

<style lang="scss" scoped>
.express-section {
  width: 100%;
  background: #ffffff;
  // border-radius: 24rpx;
  padding: 40rpx 36rpx;
  margin-bottom: 24rpx;

  .express-info {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .express-status {
      display: flex;
      align-items: center;
      font-family: PingFang SC;

      line-height: 40rpx;
      font-size: 28rpx;
      color: #262626;

      image {
        width: 24rpx;
        height: 24rpx;
        margin-right: 11rpx;
      }
    }

    .right-arrow-icon {
      width: 12rpx;
      height: 20rpx;
    }
  }
}
</style>
